package com.tongji.housediy.model
{
	import com.tongji.housediy.events.commonEvent.SetCompStateEvent;
	
	import org.robotlegs.mvcs.Actor;
	
	import spark.components.Button;
	import spark.components.RadioButton;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	[Bindable]
	public class CompEnableStateModel extends Actor
	{
		public var isProjectionBtnEnable:Boolean = false;
		public var isViewPointBtnEnable:Boolean = true;
		public var isMove3DBtnEnable:Boolean = true;
		
		public var isRightTabBtnEnable:Boolean = true;
		public var isSearchState:Boolean = false;
		
		public var is2DView:Boolean = true;
		public var is3DView:Boolean = false;
		
		public var stateIndex:int = 0;
		
		public var brandStateIndex:int = 0;
	
		
		public function CompEnableStateModel()
		{
			super();
		}
		
		public function setWanderMode():void
		{
			isProjectionBtnEnable = true;
			isViewPointBtnEnable = false;
			isMove3DBtnEnable = false;
		}
		
		public function setNormalMode():void
		{
			isProjectionBtnEnable = false;
			isViewPointBtnEnable = true;
			isMove3DBtnEnable = true;
			
			dispatch(new SetCompStateEvent(SetCompStateEvent.RESET_MAP));
		}
	}
}